function columns(vm) {
    const cols = [
        {
            title: '序号',
            dataIndex: '',
            key: 'rowIndex',
            width: 60,
            align: 'center',
            customRender: function (t, r, index) {
                return parseInt(index) + 1
            }
        },
        {
          title: '功能',
          align: 'center',
          dataIndex: 'stageName',
          key: 'stageName'
        },
        {
            title:'人员',
            align:'center',
            dataIndex:'createName',
            key:'createName'
        },
        {
            title:'操作',
            align:'center',
            dataIndex:'commit',
            key:'commit'
        },
        {
            title:'时间',
            align:'center',
            dataIndex:'createTime',
            key:'createTime'
        }
    ]
    return cols
}

export default columns